/*
 * ILogger.h
 *
 *  Created on: Sep 10, 2012
 *      Author: nam20485
 */

#ifndef ILOGGER_H_
#define ILOGGER_H_

#include "Arduino.h"


class Logger
{
public:
	//Logger()	{}
	//virtual ~Logger() {}

	static int addStream(Stream* pStream);
	static void removeStream(int index);

	static void log(const String& s);
	static void log(const char* sz);
	static void log(const uint8_t c);

protected:
	static const int MAX_STREAMS = 5;
	static const int NULL_STREAM = 0;
	static Stream* m_apStreams[Logger::MAX_STREAMS];

};

#endif /* ILOGGER_H_ */
